package priv.wangy.micro.common.po.http.rspn;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonValue;
import com.fasterxml.jackson.annotation.JsonView;
import lombok.Data;
import lombok.NoArgsConstructor;
import priv.wangy.micro.common.po.http.rspn.view.DefaultView;

import java.util.List;

/**
 * @author zhangjq
 * @since 2023-11-08
 */
@Data
@NoArgsConstructor
@JsonView(DefaultView.class)
@JsonInclude(JsonInclude.Include.NON_NULL)
public class SimpleListRspn<T> {

    @JsonValue
    private List<T> list;

    @JsonCreator
    public SimpleListRspn(List<T> list) {
        this.list = list;
    }
}
